package com.zhangtai.modules.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zhangtai.config.LongJsonDeserializer;
import com.zhangtai.config.LongJsonSerializer;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


@Data
public class ScoreDto implements Serializable {
	private static final long serialVersionUID = 1L;

				@TableId
		@JsonDeserialize(using = LongJsonDeserializer.class)
		@JsonSerialize(using = LongJsonSerializer.class)
			private Long id;
			/**
		 * 关联id
		 */
			@JsonDeserialize(using = LongJsonDeserializer.class)
			@JsonSerialize(using = LongJsonSerializer.class)
			private Long relationId;
			/**
		 * 权重id
		 */
			@JsonDeserialize(using = LongJsonDeserializer.class)
			@JsonSerialize(using = LongJsonSerializer.class)
			private Long weightsId;
			/**
		 * 编号
		 */
			private String serialNumber;
			/**
		 * 被评分人员工id
		 */
			@JsonDeserialize(using = LongJsonDeserializer.class)
			@JsonSerialize(using = LongJsonSerializer.class)
			private Long oid;
			/**
		 * 被评分人员工姓名
		 */
			private String name;
			/**
		 * 被评分人公司id
		 */
			@JsonDeserialize(using = LongJsonDeserializer.class)
			@JsonSerialize(using = LongJsonSerializer.class)
			private Long orgId;
			private String orgName;
			/**
		 * 被评分人部门id
		 */
			@JsonDeserialize(using = LongJsonDeserializer.class)
			@JsonSerialize(using = LongJsonSerializer.class)
			private Long unitId;
			private String unitName;
			/**
		 * 被评分人职位id
		 */
			@JsonDeserialize(using = LongJsonDeserializer.class)
			@JsonSerialize(using = LongJsonSerializer.class)
			private Long jobId;
			private String jobName;
			/**
		 * 评分类型   方案id
		 */
			@JsonDeserialize(using = LongJsonDeserializer.class)
			@JsonSerialize(using = LongJsonSerializer.class)
			private Long programId;
			/**
		 * 分数
		 */
			private BigDecimal score;
			/**
		 * 状态  0 未发起  1 评分中 2 已完成
		 */
			private Integer status;
			/**
		 * 创建时间
		 */
			private Date createTime;
			/**
		 * 0:未删除，1：已删除
		 */
			private Integer isDelete;
			/**
		 * 创建人
		 */
			private String createName;
			/**
		 * 创建人 code
		 */
			private String createCode;
			/**
		 * 是否自评
		 */
			private Integer isAppraisal;
			/**
		 * 评价总人数
		 */
			private Integer sum;

	/**
	 * 方案名称
	 */
	private String programName;

	/**
	 * 参评人数
	 */
	private Integer appraisalNum;

	/**
	 * 参评率
	 */
	private BigDecimal appraisalTare;
	
}
